<include file="Public:html" />

<title>推荐他人</title>

<link type="text/css" rel="stylesheet" media="screen" href="../Public/css/member.css" />

<script type="text/javascript" src="../Public/js/ZeroClipboard.js?1002"></script> 

</head>


<body id="paiban" class="skin">
	<div class="paragraph clearfix">
	    <h4 class="fl tr" style="width:60px;">MSN/QQ:</h4>
	    <input class="input fl" style="width:350px;" value="http://{$_SERVER['HTTP_HOST']}{:U('Index/invite/u/'.$id)}" id="link_copy_m" />
	    <input class="sendReq fl" id="m_clip_button" type="button" value="复制" />
	</div>
	
	<div class="paragraph clearfix">
	    <ul class="disc inside">
	        <li>必须通以上链接推荐才有效，不然不知道是谁推荐的哦。</li>
	        <li>通过非正常渠道邀请不予承认，请注意。</li><li class="notice">复制成功后会关闭这个对话框，然后ctrl+v粘贴给好友。</li>
	    </ul>
	</div>
	
	
	
	<script language="JavaScript">
		ZeroClipboard.setMoviePath( '../Public/js/ZeroClipboard.swf' );  //和copy.php不在同一目录需设置setMoviePath
		ZeroClipboard.setMoviePath( '../Public/js/ZeroClipboard10.swf' );
		var clip = new ZeroClipboard.Client();   //创建新的Zero Clipboard对象
		clip.setText( '' ); // will be set later on mouseDown   //清空剪贴板
		clip.setHandCursor( true );      //设置鼠标移到复制框时的形状
		clip.setCSSEffects( true );          //启用css
		clip.addEventListener( 'load', function(client) {
			//alert( "movie is loaded" );
		} );
		clip.addEventListener( 'complete', function(client, text) {     //复制完成后的监听事件		
			alert("复制成功");
			//clip.hide(); // 复制一次后，hide()使复制按钮失效，防止重复计算使用次数
		} );
		clip.addEventListener( 'mouseOver', function(client) {
			//alert("mouse over");
		} );
		clip.addEventListener( 'mouseOut', function(client) {
			//alert("mouse out");
		} );
		clip.addEventListener( 'mouseDown', function(client) {
			// set text to copy here
		clip.setText( document.getElementById('link_copy_m').value );
			//alert("mouse down");
		} );
		clip.addEventListener( 'mouseUp', function(client) {
			// alert("mouse up");
		} );
		clip.glue( 'm_clip_button' );
	</script>



</body>
</html>